package com.luo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.luo.dao.SearchDao;
import com.luo.domain.User;

@Service
public class SearchServiceImpl implements SearchService {

    //service层注入dao
    
    @Autowired
    private SearchDao searchDao;
    
    @Override
    public List<User> serchUserByName(String userName) {
        //在Service中要调用Dao
        
        return searchDao.serchUserByName(userName);
    }

}
